<?php
defined('BY_JYA') or exit('error');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();
if($_RQ['op']=='get'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$return['item']['code']="cfc('tools')->pcd();";
	$return['htmls']=array (
		  'type' => 'edit',
		  'edit_tab' => '基本信息',
		  'edits' => 
		  array (
		    0 => 
		    array (
		      'title' => '基本信息',
		      'list' => 
		      array (
		        array ('name' => 'city','type' => 'pcd','options'=>'pcd','title' => '选择地区'),
				array ('name' => 'code','type' => 'copy','title' => '调用方法'),
		      ),
		    ),
		  ),
	);
	$return['pcd']=cfc('tools')->pcd();	
	exi($return);
}
?>